package graphique;



import javax.swing.*;


 //****************************************************************/
 //label personalisé
 /****************************************************************/

 class LesLabels extends JLabel{

 
	 public LesLabels(String label,int horizental,int taillePolice,int x0,int y0,int x,int y,Fenetre contentPane){
		 super(label);
		 setFont(new java.awt.Font("Monospaced", 1, taillePolice));
		 setBounds(x0,y0,x,y);
		 if(horizental == 0)
			 setHorizontalAlignment(SwingConstants.LEFT);
		 if(horizental == 1)
			 setHorizontalAlignment(SwingConstants.CENTER);
		 if(horizental == 2)
			 setHorizontalAlignment(SwingConstants.RIGHT);
		 contentPane.add(this);
		
	 }
 }
